073bc23a1aa0bb4f989537e0d894d9e2a29f7fce,community/src/java/org/neo4j/impl/shell/apps/Rm.java,Rm,exec,#AppCommandParser#Session#Output#,43
Before Change
try
{
String key = parser.arguments().get( 0 );
if ( this.getCurrentNode( session ).removeProperty( key ) == null )
{
out.println( "Property '" + key + "' not found" );
}
After Change
protected String exec( AppCommandParser parser, Session session,
Output out ) throws ShellException
{
if ( parser.arguments().isEmpty() )
{
throw new ShellException( "Must supply the property key to " +
"remove, like: rm title" );
}
try
{
String key = parser.arguments().get( 0 );
Node node = this.getCurrentNode( session );
NodeOrRelationship thing = getNodeOrRelationship( node, parser );
if ( thing.removeProperty( key ) == null )
{
out.println( "Property '" + key + "' not found" );